<template>
    <div></div>
</template>
<script lang="ts">
import { defineComponent, Ref, watch } from "vue";
import useRequest from "../hooks/useRequest";
export default defineComponent({
    setup() {
        type areaType = {
            province: string;
            city: string;
            area: string;
        };
        const { data } = useRequest<areaType>({ url: "/data/area.json" });
        watch(data,()=>{
            console.log(data)
        })
    },
});
</script>
